import java.util.Date;

import com.ruoyi.common.utils.DateUtils;

import java.util.Calendar;

public class Main {
	public static void main(String[] args) {
		Date currentDate = DateUtils.parseDate("2023-06-01");
		Calendar calendar = Calendar.getInstance();
		calendar.setTime(currentDate);
		int currentMonth = calendar.get(Calendar.MONTH);
		int currentQuarter = (currentMonth / 3) + 1;
		int lastMonthofouarter = currentQuarter * 3;
		System.out.println("当前季度最后月份:" + lastMonthofouarter);
	}
}